#ifndef MYCOIN_H
#define MYCOIN_H

#include <QPushButton>
#include <QTimer>
#include <QSound>
class MyCoin : public QPushButton
{
    Q_OBJECT
public:    
    MyCoin(QString BtnImage);
    QSound * coinFlipSound = new QSound(":/res/ConFlipSound.wav",this);
    int posX;
    int posY;
    bool flag;
    void changeFlag();
    int min = 1;
    int max = 8;    
    bool isAnimation = false;
    QTimer * timer1;
    QTimer * timer2;
    bool isWin=false;
    void mousePressEvent(QMouseEvent * ev);
signals:

};

#endif // MYCOIN_H
